package club.caihappy.store.entity;

import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 购物车信息的实体类
 * Created by DELL on 2022/3/23
 **/
@Data
@NoArgsConstructor
//@AllArgsConstructor
//@Builder
public class Cart extends BaseEntity implements Serializable {
    private Integer cid;
    private Integer uid;
    private Integer pid;
    private Long price;
    private Integer num;


    @Builder
    public Cart(String createdUser, Date createdTime, String modifiedUser, Date modifiedTime, Integer cid, Integer uid, Integer pid, Long price, Integer num) {
        super(createdUser, createdTime, modifiedUser, modifiedTime);
        this.cid = cid;
        this.uid = uid;
        this.pid = pid;
        this.price = price;
        this.num = num;
    }
}
